namespace DmServer.Core.Base;

public class ApplicationContext
{
    public static ApplicationContext? Instance { get; private set; }
    /**
     *  全局配置
     */
    public Dictionary<string, object>? Context { get; private set; }

    public static ApplicationContext LazyInitializer()
    {
        if (Instance != null)
        {
            return Instance;
        }
        Instance = new ApplicationContext();
        Instance.Context = new Dictionary<string, object>();
        return Instance;
    }
}
